package mr.fresh.mapper.manage;

import java.util.List;
import mr.fresh.entity.manange.FreshGoods;
import mr.fresh.entity.manange.FreshGoodsExample;
import mr.fresh.entity.request.FindListGoodRequest;
import org.apache.ibatis.annotations.Param;

public interface FreshGoodsMapper {
    long countByExample(FreshGoodsExample example);

    int deleteByExample(FreshGoodsExample example);

    int deleteByPrimaryKey(Long goodId);

    int insert(FreshGoods record);

    int insertSelective(FreshGoods record);

    List<FreshGoods> selectByExample(FreshGoodsExample example);

    List<FreshGoods> selectByFindListGoodRequest(FindListGoodRequest model);

    FreshGoods selectByPrimaryKey(Long goodId);

    int updateByExampleSelective(@Param("record") FreshGoods record, @Param("example") FreshGoodsExample example);

    int updateByExample(@Param("record") FreshGoods record, @Param("example") FreshGoodsExample example);

    int updateByPrimaryKeySelective(FreshGoods record);

    int updateByPrimaryKey(FreshGoods record);
}